import irequest from './irequest'
import {
  withPassport,
  withLoading,
  simpleResponse
} from './middlerware'

// 开始集成中间件
// 请求前
irequest.use([
  withPassport,
  withLoading
], irequest.BEFORE_SEND)
// 请求后
irequest.use([
  simpleResponse
], irequest.AFTER_SEND)
